package com.sub.service;

import com.sub.model.SpSecondMenu;
import com.sub.utils.PageList;

import java.util.List;

public interface SecondMenuService {

	/**
	 * @description: 查询所有一级菜单
	 */
	public List<SpSecondMenu> querySecondMenuList(SpSecondMenu spSecondMenu);

	/**
	 * @description: 查询一条
	 */
	public SpSecondMenu queryOne(String spSecondMenuId);

	/**
	 * @Description: 查询一级菜单（条件（名称）以及分页查询）
	 */
	public PageList querySecondMenuByPageAndName(PageList pageList, int page, String name);

	/**
	 * @Description: 新增一级菜单
	 */
	public int saveSecond(SpSecondMenu secondMenu);

	/**
	 * @Description: 更新一级菜单
	 */
	public int editSecond(SpSecondMenu secondMenu);

	/**
	 * @Description: 删除一级菜单（单个）
	 */
	public int removeSecondById(String secondMenuId);

	/**
	 * @Description: 删除一级菜单（批量）
	 */
	public int batchRemoveSecondByIdS(String[] ids);

}
